﻿<%@ Page Title="" Language="C#" MasterPageFile="~/edit/Admin.Master" AutoEventWireup="true" CodeBehind="ArticleList.aspx.cs" Inherits="ChgDoc.Edit.ArticleList" %>
<asp:Content ID="Content2" ContentPlaceHolderID="pageContent" runat="server">
    <div class="formStyle">
	    <asp:datagrid id="grdList" runat="server" autogeneratecolumns=false CssClass="grid" OnItemCommand="grdList_ItemCommand" >
	    <HeaderStyle CssClass="gridHeader" />
	    <columns>
		    <asp:BoundColumn DataField="Id" visible="false" readonly="true" />
            <asp:TemplateColumn HeaderText="Title">
                <ItemTemplate>
                    <asp:LinkButton CommandName="Edit" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>' />
                </ItemTemplate>
            </asp:TemplateColumn>
		    <asp:ButtonColumn ButtonType="Linkbutton" CommandName="Delete" Text="Delete" />
	    </columns>
	    </asp:datagrid>
        <br />
        <a href="ArticleEdit.aspx?returnurl=ArticleList.aspx" text="New article" Class="ui-state-default" style="margin:10px;">Add</a>
    </div>

</asp:Content>
